<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>GPL: inc/log/log.h 文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="coffee_bean_77.268292682927px_1164279_easyicon.net.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">GPL
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="pages.html"><span>相关页面</span></a></li>
      <li><a href="namespaces.html"><span>命名空间</span></a></li>
      <li><a href="annotated.html"><span>类</span></a></li>
      <li class="current"><a href="files.html"><span>文件</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="搜索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>文件列表</span></a></li>
      <li><a href="globals.html"><span>文件成员</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_bfccd401955b95cf8c75461437045ac0.html">inc</a></li><li class="navelem"><a class="el" href="dir_f92e94dc7eb36050fc270091fb220b30.html">log</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">类</a> &#124;
<a href="#namespaces">命名空间</a> &#124;
<a href="#define-members">宏定义</a> &#124;
<a href="#typedef-members">类型定义</a> &#124;
<a href="#enum-members">枚举</a>  </div>
  <div class="headertitle">
<div class="title">log.h 文件参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>写log文件、分析log文件、log文件的一些操作  
<a href="#details">更多...</a></p>

<p><a href="log_8h_source.html">浏览源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
类</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgpl_1_1_log.html">gpl::Log</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">日志封装类  <a href="classgpl_1_1_log.html#details">更多...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
命名空间</h2></td></tr>
<tr class="memitem:namespacegpl"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegpl.html">gpl</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
宏定义</h2></td></tr>
<tr class="memitem:a0fd61dcf3024ecb644d33a85de25675f"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="log_8h.html#a0fd61dcf3024ecb644d33a85de25675f">LOGINIT</a>()&#160;&#160;&#160;<a class="el" href="classgpl_1_1_log.html#a3ae0cdd38fce4a903c02f922f960a94f">gpl::Log::Instance</a>()-&gt;initlog();</td></tr>
<tr class="separator:a0fd61dcf3024ecb644d33a85de25675f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac039567033dba8509501b64e55ec2de3"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="log_8h.html#ac039567033dba8509501b64e55ec2de3">LOGINFO</a>(...)&#160;&#160;&#160;<a class="el" href="classgpl_1_1_log.html#a3ae0cdd38fce4a903c02f922f960a94f">gpl::Log::Instance</a>()-&gt;writeLog(L_INFO, __VA_ARGS__);</td></tr>
<tr class="separator:ac039567033dba8509501b64e55ec2de3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3efd03edccfaed52b31cc7e880e76091"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="log_8h.html#a3efd03edccfaed52b31cc7e880e76091">LOGERROR</a>(...)&#160;&#160;&#160;<a class="el" href="classgpl_1_1_log.html#a3ae0cdd38fce4a903c02f922f960a94f">gpl::Log::Instance</a>()-&gt;writeLog(L_WARNING, __VA_ARGS__);</td></tr>
<tr class="separator:a3efd03edccfaed52b31cc7e880e76091"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6f3afad526da877eac376b88fa5e8da3"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="log_8h.html#a6f3afad526da877eac376b88fa5e8da3">LOGWARNING</a>(...)&#160;&#160;&#160;<a class="el" href="classgpl_1_1_log.html#a3ae0cdd38fce4a903c02f922f960a94f">gpl::Log::Instance</a>()-&gt;writeLog(L_ERROR,__VA_ARGS__);</td></tr>
<tr class="separator:a6f3afad526da877eac376b88fa5e8da3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6df843e6680404230f490359458ff265"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="log_8h.html#a6df843e6680404230f490359458ff265">LOGFATAL</a>(...)&#160;&#160;&#160;<a class="el" href="classgpl_1_1_log.html#a3ae0cdd38fce4a903c02f922f960a94f">gpl::Log::Instance</a>()-&gt;writeLog(L_FATAL,__VA_ARGS__);</td></tr>
<tr class="separator:a6df843e6680404230f490359458ff265"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abfa8d150d1a9a63f21f165ff59344572"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="log_8h.html#abfa8d150d1a9a63f21f165ff59344572">LOGTINFO</a>(...)&#160;&#160;&#160;<a class="el" href="classgpl_1_1_log.html#a3ae0cdd38fce4a903c02f922f960a94f">gpl::Log::Instance</a>()-&gt;writeThreadLog(L_INFO, __VA_ARGS__);</td></tr>
<tr class="separator:abfa8d150d1a9a63f21f165ff59344572"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae058d6512437eeb6c853721041f0e46a"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="log_8h.html#ae058d6512437eeb6c853721041f0e46a">LOGTERROR</a>(...)&#160;&#160;&#160;<a class="el" href="classgpl_1_1_log.html#a3ae0cdd38fce4a903c02f922f960a94f">gpl::Log::Instance</a>()-&gt;writeThreadLog(L_ERROR, __VA_ARGS__);</td></tr>
<tr class="separator:ae058d6512437eeb6c853721041f0e46a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa4e2467b31b623195d78b25dba40e748"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="log_8h.html#aa4e2467b31b623195d78b25dba40e748">LOGTWARNING</a>(...)&#160;&#160;&#160;<a class="el" href="classgpl_1_1_log.html#a3ae0cdd38fce4a903c02f922f960a94f">gpl::Log::Instance</a>()-&gt;writeThreadLog(L_WARNING, __VA_ARGS__);</td></tr>
<tr class="separator:aa4e2467b31b623195d78b25dba40e748"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a01f19b65a02198fbab0251bc5b225e70"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="log_8h.html#a01f19b65a02198fbab0251bc5b225e70">LOGTFATAL</a>(...)&#160;&#160;&#160;<a class="el" href="classgpl_1_1_log.html#a3ae0cdd38fce4a903c02f922f960a94f">gpl::Log::Instance</a>()-&gt;writeThreadLog(L_FATAL, __VA_ARGS__);</td></tr>
<tr class="separator:a01f19b65a02198fbab0251bc5b225e70"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
类型定义</h2></td></tr>
<tr class="memitem:aa7e5f3f22ea3394ebe1e3ca1a41b1d2a"><td class="memItemLeft" align="right" valign="top">typedef enum <a class="el" href="namespacegpl.html#a510caae384098971b41c67806ef8cde0">gpl::logLevel</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegpl.html#aa7e5f3f22ea3394ebe1e3ca1a41b1d2a">gpl::outputLogLevel</a></td></tr>
<tr class="separator:aa7e5f3f22ea3394ebe1e3ca1a41b1d2a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
枚举</h2></td></tr>
<tr class="memitem:a510caae384098971b41c67806ef8cde0"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegpl.html#a510caae384098971b41c67806ef8cde0">gpl::logLevel</a> { <a class="el" href="namespacegpl.html#a510caae384098971b41c67806ef8cde0afe952e016e89be5c9dcebf57f9c204bb">gpl::L_INFO</a> = 1, 
<a class="el" href="namespacegpl.html#a510caae384098971b41c67806ef8cde0a4416a69abda34968f10009e1b32d4ac7">gpl::L_WARNING</a> = 2, 
<a class="el" href="namespacegpl.html#a510caae384098971b41c67806ef8cde0aa27280ffbdc22f036d0d4d303bfb3922">gpl::L_ERROR</a> = 3, 
<a class="el" href="namespacegpl.html#a510caae384098971b41c67806ef8cde0a1bbf07e547e8b5c05bb131b0f9815739">gpl::L_FATAL</a> = 4
 }</td></tr>
<tr class="separator:a510caae384098971b41c67806ef8cde0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>写log文件、分析log文件、log文件的一些操作 </p>
<p>Copyright (c) 2016, DayBreak(<a href="https://github.com/DayBreakZhang">https://github.com/DayBreakZhang</a>) All rights reserved.</p>
<dl class="section author"><dt>作者</dt><dd>DayBreakZhang(<a href="#" onclick="location.href='mai'+'lto:'+'a36'+'53'+'164'+'65'+'@gm'+'ai'+'l.c'+'om'; return false;">a3653<span style="display: none;">.nosp@m.</span>1646<span style="display: none;">.nosp@m.</span>5@gma<span style="display: none;">.nosp@m.</span>il.c<span style="display: none;">.nosp@m.</span>om</a>) </dd></dl>
<dl class="section date"><dt>日期</dt><dd>2016/06/02 10:48</dd></dl>
<dl class="section note"><dt>注解</dt><dd>使用goole的glog开源项目为基础</dd></dl>
<dl class="section version"><dt>版本</dt><dd><ul>
<li>v1.0 2016/06/02 10:48 DayBreakZhang 0.1 </li>
</ul>
</dd></dl>
<dl class="todo"><dt><b><a class="el" href="todo.html#_todo000002">待办事项:</a></b></dt><dd>无 </dd></dl>

<p>在文件 <a class="el" href="log_8h_source.html">log.h</a> 中定义.</p>
</div><h2 class="groupheader">宏定义说明</h2>
<a class="anchor" id="a3efd03edccfaed52b31cc7e880e76091"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define LOGERROR</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em></td><td>)</td>
          <td>&#160;&#160;&#160;<a class="el" href="classgpl_1_1_log.html#a3ae0cdd38fce4a903c02f922f960a94f">gpl::Log::Instance</a>()-&gt;writeLog(L_WARNING, __VA_ARGS__);</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>宏定义 ERROR log </p>

<p>在文件 <a class="el" href="log_8h_source.html">log.h</a> 第 <a class="el" href="log_8h_source.html#l00020">20</a> 行定义.</p>

</div>
</div>
<a class="anchor" id="a6df843e6680404230f490359458ff265"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define LOGFATAL</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em></td><td>)</td>
          <td>&#160;&#160;&#160;<a class="el" href="classgpl_1_1_log.html#a3ae0cdd38fce4a903c02f922f960a94f">gpl::Log::Instance</a>()-&gt;writeLog(L_FATAL,__VA_ARGS__);</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>宏定义FATAL log </p>

<p>在文件 <a class="el" href="log_8h_source.html">log.h</a> 第 <a class="el" href="log_8h_source.html#l00022">22</a> 行定义.</p>

</div>
</div>
<a class="anchor" id="ac039567033dba8509501b64e55ec2de3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define LOGINFO</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em></td><td>)</td>
          <td>&#160;&#160;&#160;<a class="el" href="classgpl_1_1_log.html#a3ae0cdd38fce4a903c02f922f960a94f">gpl::Log::Instance</a>()-&gt;writeLog(L_INFO, __VA_ARGS__);</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>宏定义INFO log </p>

<p>在文件 <a class="el" href="log_8h_source.html">log.h</a> 第 <a class="el" href="log_8h_source.html#l00019">19</a> 行定义.</p>

</div>
</div>
<a class="anchor" id="a0fd61dcf3024ecb644d33a85de25675f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define LOGINIT</td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td>&#160;&#160;&#160;<a class="el" href="classgpl_1_1_log.html#a3ae0cdd38fce4a903c02f922f960a94f">gpl::Log::Instance</a>()-&gt;initlog();</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>宏定义初始化log </p>

<p>在文件 <a class="el" href="log_8h_source.html">log.h</a> 第 <a class="el" href="log_8h_source.html#l00018">18</a> 行定义.</p>

</div>
</div>
<a class="anchor" id="ae058d6512437eeb6c853721041f0e46a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define LOGTERROR</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em></td><td>)</td>
          <td>&#160;&#160;&#160;<a class="el" href="classgpl_1_1_log.html#a3ae0cdd38fce4a903c02f922f960a94f">gpl::Log::Instance</a>()-&gt;writeThreadLog(L_ERROR, __VA_ARGS__);</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>宏定义线程安全ERROR log </p>

<p>在文件 <a class="el" href="log_8h_source.html">log.h</a> 第 <a class="el" href="log_8h_source.html#l00025">25</a> 行定义.</p>

</div>
</div>
<a class="anchor" id="a01f19b65a02198fbab0251bc5b225e70"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define LOGTFATAL</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em></td><td>)</td>
          <td>&#160;&#160;&#160;<a class="el" href="classgpl_1_1_log.html#a3ae0cdd38fce4a903c02f922f960a94f">gpl::Log::Instance</a>()-&gt;writeThreadLog(L_FATAL, __VA_ARGS__);</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>宏定义线程安全 log </p>

<p>在文件 <a class="el" href="log_8h_source.html">log.h</a> 第 <a class="el" href="log_8h_source.html#l00027">27</a> 行定义.</p>

</div>
</div>
<a class="anchor" id="abfa8d150d1a9a63f21f165ff59344572"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define LOGTINFO</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em></td><td>)</td>
          <td>&#160;&#160;&#160;<a class="el" href="classgpl_1_1_log.html#a3ae0cdd38fce4a903c02f922f960a94f">gpl::Log::Instance</a>()-&gt;writeThreadLog(L_INFO, __VA_ARGS__);</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>宏定义线程安全INFO log </p>

<p>在文件 <a class="el" href="log_8h_source.html">log.h</a> 第 <a class="el" href="log_8h_source.html#l00024">24</a> 行定义.</p>

</div>
</div>
<a class="anchor" id="aa4e2467b31b623195d78b25dba40e748"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define LOGTWARNING</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em></td><td>)</td>
          <td>&#160;&#160;&#160;<a class="el" href="classgpl_1_1_log.html#a3ae0cdd38fce4a903c02f922f960a94f">gpl::Log::Instance</a>()-&gt;writeThreadLog(L_WARNING, __VA_ARGS__);</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>宏定义线程安全WARNING log </p>

<p>在文件 <a class="el" href="log_8h_source.html">log.h</a> 第 <a class="el" href="log_8h_source.html#l00026">26</a> 行定义.</p>

</div>
</div>
<a class="anchor" id="a6f3afad526da877eac376b88fa5e8da3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define LOGWARNING</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em></td><td>)</td>
          <td>&#160;&#160;&#160;<a class="el" href="classgpl_1_1_log.html#a3ae0cdd38fce4a903c02f922f960a94f">gpl::Log::Instance</a>()-&gt;writeLog(L_ERROR,__VA_ARGS__);</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>宏定义WARNINE log </p>

<p>在文件 <a class="el" href="log_8h_source.html">log.h</a> 第 <a class="el" href="log_8h_source.html#l00021">21</a> 行定义.</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
